package main

import (
	"fmt"
	"strings"
)

func numJewelsInStones(J string, S string) int {
	result := 0
	for i := 0; i < len(S); i++ {
		if strings.Contains(J, S[i:i+1]) {
			result++
		}
	}
	return result
}

func main() {
	r := numJewelsInStones("aA", "AAasss")
	fmt.Println(r)
}
